projects
/
babl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e1f581
)
bail on db-cache restoration if format lookup fails
author
Øyvind Kolås
<pippin@gimp.org>
Mon, 14 Nov 2016 01:30:03 +0000
(
02:30
+0100)
committer
Øyvind Kolås
<pippin@gimp.org>
Mon, 14 Nov 2016 01:30:03 +0000
(
02:30
+0100)
babl/babl.c
patch
|
blob
|
history
diff --git
a/babl/babl.c
b/babl/babl.c
index 12873839b7b0b927d3fc862ffdea01a06dd23c90..72f2327247847b5a0b7298006c03472e8e5ec9ec 100644
(file)
--- a/
babl/babl.c
+++ b/
babl/babl.c
@@
-350,9
+350,17
@@
static void babl_init_db (const char *path)
break;
default:
if (!from_format)
- from_format = babl_format (token);
+ {
+ from_format = (void*)babl_db_find(babl_format_db(), &token[1]);
+ if (!from_format)
+ return;
+ }
else
- to_format = babl_format (token);
+ {
+ to_format = (void*)babl_db_find(babl_format_db(), &token[1]);
+ if (!to_format)
+ return;
+ }
break;
}